package daosimp;

import modelo.Matricula;

import org.hibernate.Transaction;

import util1.HibernateUtil;
import daos.MatriculaDAO;

public class MatriculaDAOIMP implements MatriculaDAO{
	
	private Transaction tx;

	@Override
	public void modificarMatricula(Matricula matricula) {
		try{
			tx = HibernateUtil.session.beginTransaction();
			HibernateUtil.session.update(matricula);
			tx.commit();
		} catch (Exception ex){
			tx.rollback();
		} 
	}
}
